 function Get-AllHistory
{
    $his = Get-Content (Get-PSReadLineOption).HistorySavePath
    $n = $his.Length
    $out = @()
    for($i=0;$i -lt $n;$i++)
    {
        $out = $out + "$i $($his[$i])"
    }
    return $out
}